import request from '@/utils/request'

// 查询识别码列表
export function listCodeid(query) {
  return request({
    url: '/system/codeid/list',
    method: 'get',
    params: query
  })
}

// 查询识别码详细
export function getCodeid(id) {
  return request({
    url: '/system/codeid/' + id,
    method: 'get'
  })
}

// 新增识别码
export function addCodeid(data) {
  return request({
    url: '/system/codeid',
    method: 'post',
    data: data
  })
}

// 修改识别码
export function updateCodeid(data) {
  return request({
    url: '/system/codeid',
    method: 'put',
    data: data
  })
}

// 删除识别码
export function delCodeid(id) {
  return request({
    url: '/system/codeid/' + id,
    method: 'delete'
  })
}

export function createCodeId(data) {
  return request({
    url: '/system/codeid/createCodeId',
    method: 'post',
    data: data
  })
}
export function  getMerchantList(params) {
  return request({
    url: '/system/codeid/getUserList',
    method: 'get',params
  })
}

export function saveMerchant(data) {
  return request({
    url: '/system/codeid/saveMerchant',
    method: 'post',
    data: data
  })
}
export function packageShipping(data) {
  return request({
    url: '/system/codeid/packageShipping',
    method: 'post',
    data: data
  })
}
export function  getRewardAmount() {
  return request({
    url: '/system/systemCon/getSystem',
    method: 'get',
  })
}
export function  editRewardAmount(data) {
  return request({
    url: '/system/systemCon/edit',
    method: 'post',
    data
  })
}
